04. Event System and Inputs

Event System and Inputs

Video Addendum

At 1:30 min into the video

When the instructor adds the GazeInputModule script component to the EventSystem game object:

  • The GazeInputModule script no longer exists in the GVR SDK, it has been renamed GvrPointerInputModule and should be used instead.
  • To find it, search for "gvr pointer input module" instead of "gaze input module".

Important! Always use GvrPointerInputModule instead of GazeInputModule.

Tip: Click events are very common in VR apps. We'll use them for a variety of things in our projects. You will know you need to use an Event Trigger when you see things like "when [some object is] clicked". You might also use Event Triggers for creating hover events.

Project Preview: Coin click event plays a sound effect. Coin click event removes the coin from the hierarchy. Key click event plays sound effect. Key click event removes the coin from the hierarchy. Key click unlocks door Door click event



**Optional Project Challenge: **

If you want to make your app stand out, you can try adding a hover effect to your coins and key. When the reticle hovers over a coin or key, increase the scale to 1.5. When the reticle leaves or ends the hover, reset the scale.